import request from '@/utils/request';


export default {

    //查询所有患者
    findPati(pageym,pagesize) {
        return request({
            url: `http://localhost/api/pati/pati/findPati?pageym=${pageym}&pagesize=${pagesize}`,
            method: 'post'
        });
    },
    deletepati(id) {
        return request({
            url: `http://localhost/api/pati/pati/delPati?id=${id}`,
            method: 'post'
        });
    },
    listByname(pageym,pagesize,cardid,patiname) {
        return request({
            url: `http://localhost/api/pati/pati/findPatiByid?pageym=${pageym}&pagesize=${pagesize}&cardid=${cardid}&patiname=${patiname}`,
            method: 'post'
        });
    },
    getListDto(){
        return request({
            url: `http://localhost/api/pati/pati/getListDto`,
            method: 'post'
        });
    },
    addpati(data) {
        return request({
            url: `http://localhost/api/pati/pati/addPati`,
            method: 'post',
            data
        });
    },
    upPatiUI(id){
        return request({
            url: `http://localhost/api/pati/pati/upPatiui?id=${id}`,
            method: 'post',      
        });
    },
    uppati(data) {
        return request({
            url: `http://localhost/api/pati/pati/upPati`,
            method: 'post',
            data
        });
    },
}